﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuEmpresaHorario.aspx.cs"
    Inherits="VemTransporte.Views.UsuarioEmpresa.CadastroHorario" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>..:: STI ::..</title>
    <link href="../../Content/Estilo/stylo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/menuEmpresa_files/css3menu1/style.css" rel="stylesheet"
        type="text/css" />
</head>
<body id="corpo2">
    <!-- Div Topo Inicio -->
    <div id="topo">
        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresa.aspx">
        <div id="logoTopo">
        </div>
        </asp:HyperLink>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/LoginEmpresa.aspx">
        <div id="sair"></div>
        </asp:HyperLink>
    </div>
    <br />
    <form id="form1" runat="server">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="ImageEmpresaLogoTipo" runat="server" Height="138px" Width="137px"
                                ImageUrl="~/Content/Imagens/default_logo.jpg" />
                            <br />
                            <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Views/UsuarioEmpresa/MenuEmpresaLogoTipo.aspx">Alterar Logotipo</asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Bem vindo," Font-Bold="True" ForeColor="#000099"></asp:Label>
                            <br />
                            <asp:Label ID="LabelNomeEmpresa" runat="server" Text="Label" Font-Bold="True" ForeColor="#000099"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <ul id="css3menu1" runat="server" class="topmenu">
                                <li runat="server" class="topfirst" id="liMenuEmpresaCadastro"><a href="MenuEmpresaCadastrar.aspx"
                                    title="Alterar Dados Empresa" style="width: 206px;">Alterar Dados Empresa</a></li>
                                <li runat="server" id="liMenuCadastroInicialEmpresa"><a href="CadastroInicialEmpresa.aspx"
                                    title="Cadastro de Empresa" style="width: 206px;">Cadastrar Empresa</a></li>
                                <li runat="server" id="liMenuAlterarEndEmpresa"><a href="MenuEmpresaEndereco.aspx"
                                    title="Alterar Endereço" style="width: 206px;">Alterar Endereço</a></li>
                                <li runat="server" id="liMenuCadastrarTelefones"><a href="MenuEmpresaTelefones.aspx"
                                    title="Cadastrar Telefones" style="width: 206px;">Cadastrar Telefones</a></li>
                                <li runat="server" id="liMenuAlterarSenhaEmpresa"><a href="MenuEmpresaAlterarSenha.aspx"
                                    title="Alterar Senha" style="width: 206px;">Alterar Senha</a></li>
                                <li runat="server" id="liMenuAlterarLinhaEmpresa"><a href="MenuEmpresaLinha.aspx"
                                    title="Cadastro de Linhas" style="width: 206px;">Cadastro de Linhas</a></li>
                                <li runat="server" id="liMenuCadastroParadaEmpresa"><a href="MenuEmpresaParada.aspx"
                                    title="Cadastro de Paradas" style="width: 206px;">Cadastro de Paradas</a></li>
                                <li runat="server" id="liMenuHoraLinhaEmpresa"><a href="#" title="Cadastro de Horarios das Linhas"
                                    style="width: 206px; background-color: #3a1300; border-color: #C0C0C0; border-style: solid;
                                    font: bold 14px Trebuchet MS; color: #ffffff; text-decoration: none; background-position: 0 100px;">
                                    Cadastro de Horarios das Linhas</a></li>
                                <li runat="server" id="liMenuEmpresaVeiculo"><a href="MenuEmpresaCadastroVeiculo.aspx"
                                    title="Cadastro de Veículos" style="width: 206px;">Cadastro Veículos</a></li>
                                <li runat="server" id="liMenuEmpresaLinhaParada"><a href="MenuEmpresaLinhaParada.aspx"
                                    title="Cadastro de Linha/Parada" style="width: 206px;">Cadastro de Linha/Parada</a></li>

                            </ul>
                            <p>
                                &nbsp;</p>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 90%">
                <div>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <br />
                    <span class="failureNotification">
                        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                        <br />
                        <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="RegisterUserValidationGroup" />
                    </span>
                    <asp:UpdateProgress ID="UpdateProgressLinha" runat="server" AssociatedUpdatePanelID="UpdatePanelLinha">
                        <ProgressTemplate>
                            <asp:Image ID="ImgLinha" runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanelLinha" runat="server">
                        <ContentTemplate>
                            <asp:Label ID="LabelNumeroLinha" runat="server" Font-Names="verdana" Font-Size="12px"
                                ForeColor="#203360" Text="Número da linha"></asp:Label>
                            :&nbsp;<asp:TextBox ID="TextBoxNumeroLinha" runat="server" ValidationGroup="ValidationSummary1"
                                Width="205px" Height="30px" BorderColor="#9aafca" Font-Size="14px"></asp:TextBox>
                            &nbsp;<asp:Button ID="ButtonProcurarLinha" runat="server" Font-Names="verdana" Font-Size="12px"
                                OnClick="ButtonProcurarLinha_Click" Text="Procurar" BackColor="#6ea954" BorderColor="#6ea954"
                                ForeColor="White" Height="30px" Width="100px" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBoxNumeroLinha"
                                CssClass="field-validation-error" ErrorMessage="Digite o código da linha!"></asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="LabelNomeLinha" runat="server" BackColor="Red"></asp:Label>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <br />
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelHorario">
                        <ProgressTemplate>
                            <asp:Image ID="ImgHorario" runat="server" ImageUrl="~/Content/gifs/wait_gif.gif" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <br />
                    <asp:UpdatePanel ID="UpdatePanelHorario" runat="server">
                        <ContentTemplate>
                            <table style="width: 65%;">
                                <tr>
                                    <td colspan="1" rowspan="1">
                                        <asp:Label ID="LabelSai" runat="server" Font-Names="verdana" Font-Size="12px" ForeColor="#203360"
                                            Text="Hora Saída"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelHoraCheg" runat="server" Font-Names="verdana" Font-Size="12px"
                                            ForeColor="#203360" Text="Hora Chegada"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" rowspan="1">
                                        <asp:TextBox ID="TextBoxHoraSaida" runat="server" Width="161px" Height="30px" BorderColor="#9aafca"
                                            Font-Size="14px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxHoraSaida"
                                            CssClass="field-validation-error" ErrorMessage="*" ValidationGroup="ValidationSummary1"></asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxHoraChegada" runat="server" Width="161px" Height="30px" BorderColor="#9aafca"
                                            Font-Size="14px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxHoraChegada"
                                            CssClass="field-validation-error" ErrorMessage="*" ValidationGroup="ValidationSummary1"></asp:RequiredFieldValidator>
                                    </td>
                                    <td rowspan="2" align="center" valign="middle">
                                        <asp:Button ID="ButtonSalvarHorario" runat="server" Text="Salvar" BackColor="#6ea954"
                                            BorderColor="#6ea954" ForeColor="White" Height="30px" Width="100px" OnClick="ButtonSalvarHorario_Click" />
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:GridView ID="GridViewHorario" runat="server" CellPadding="4" ForeColor="#333333"
                                GridLines="None" AutoGenerateColumns="False" Width="398px" EmptyDataText="Nenhum horario cadastrada!"
                                Height="216px" OnRowCommand="GridViewHorario_RowCommand" OnRowDataBound="GridViewHorario_RowDataBound"
                                OnRowDeleting="GridViewHorario_RowDeleting" OnRowEditing="GridViewHorario_RowEditing"
                                OnPageIndexChanging="GridViewHorario_PageIndexChanging">
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:BoundField HeaderText="Hora de saída" DataField="HoraSaida" DataFormatString="{0:hh:mm:ss}">
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Hora de chegada" DataField="HoraChegada" DataFormatString="{0:hh:mm:ss}">
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButtonExcluir" runat="server" CommandName="excluir" ImageUrl="~/Content/Imagens/DeleteRed.png" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ButtonType="Image" EditImageUrl="~/Content/Imagens/edit-icon.png"
                                        ShowEditButton="True" />
                                    <asp:BoundField DataField="Id" Visible="False" />
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
    </table>
    </form>
    <hr style="color: #ccc" />
    <center style="color: #999; font-size: 12px;">
        Vem Tranporte - Sistema de Trasnporte Inteligente - 2011
    </center>
    <br />
</body>
</html>
